package com.xmtlxx.sacw.domain.bo;

import com.xmtlxx.sacw.domain.DisposalInfo;
import com.xmtlxx.sacw.domain.DisposalPro;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 处置登记
 *
 * @author hergreen
 * @date 2024/07/19 09:58
 **/
@Data
@ApiModel("处置登记")
public class DisposalRegisterBo {

    @ApiModelProperty("处置信息")
    private DisposalInfo disposalInfo;

    @ApiModelProperty("处置财物")
    private List<DisposalPro> proList;

    public List<DisposalPro> getProList() {

        this.proList.forEach(pro -> pro.setDisposalId(this.disposalInfo.getId()));
        return this.proList;
    }

}
